package classes.Commands
{
	import components.editor.c_baseEditor;
	import components.editor.c_baseElement;
	import components.editor.c_bitmapElement;
	
	import flash.display.BitmapData;
	
	public class c_baseBitmapCommand extends c_commandFromEditor {
		public function c_baseBitmapCommand(a_editor:c_baseEditor, a_element: c_bitmapElement=null)
		{
			super(a_editor, a_element);
		}
		
		public function get bmd(): BitmapData {
			return bmpElement.bitmap.bitmapData;
		}
		
		public function set bmd(a_bmd: BitmapData): void {
			bmpElement.bitmap.bitmapData = a_bmd;
			bmpElement.bitmap.smoothing = true;
		}
	
		public function get bmpElement(): c_bitmapElement {
			return element as c_bitmapElement;
		}
	}
}